package com.settlement.system.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 字段对应条件表单对象
 */
@Schema(description = "字段对应条件表单对象")
@Data
public class ColumnMatchConditionForm {

    @Schema(description = "对应关系ID")
    private Long matchId;

    @Schema(description = "来源:基础（base）、账单项目（project）")
    @NotBlank(message = "来源不能为空:基础（base）、账单项目（project）")
    private String sourceType;

    @Schema(description = "原始字段")
    @NotBlank(message = "原始字段不能为空")
    private String sourceColumn;

    @Schema(description = "比较类型")
    @NotBlank(message = "比较类型不能为空")
    private String conditionType;

    @Schema(description = "比较值")
    @NotBlank(message = "比较值不能为空")
    private String conditionValue;
}
